x = eval(input("请输入数字:"))
a = []
b =list(x)                                                                                                                                                                                                                                                                                                                                                      
a.extend(b)
b = sum(a)
print(b)
 
